package com.gxa.modules.service;

import com.gxa.common.vo.PageRecv;
import com.gxa.common.vo.ResultVo;
import com.gxa.modules.pojo.Contract;
import com.gxa.modules.pojo.LoanSearch;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @program: microloans_system
 * @description:
 * @author: LC
 * @create: 2021-12-28 16:12
 */
public interface ContractService {
    ResultVo getContractInfo(PageRecv<LoanSearch> loanSearchPageRecv);

    ResultVo uploadFile(MultipartFile file);

    ResultVo addContract(Contract contract);

    void downloadFile(String fileUrl, HttpServletResponse response);

    void previewFile(String fileUrl, HttpServletResponse response);
}